package main;

import java.io.File;
import java.io.Serializable;
import java.util.Calendar;
 


 
public class MusicFile  {
 
	long residentComputer;
	
 	public Calendar airDate;
 
	public File referenceFile;
 
	boolean uploaded;
 
	private MusicType musicType;
	
	public String name;
 
	public Transitions transition = Transitions.NONE;
	
	private String path;
	
	public MusicFile(long residentComputer, Calendar airDate, File referenceFile,
			boolean uploaded, MusicType musicType, String name, String path) {
		this.residentComputer = residentComputer;
		this.airDate = airDate;
		this.referenceFile = referenceFile;
		this.uploaded = uploaded;
		this.setMusicType(musicType);
		this.name = name;
		this.setPath(path);
	}
	
	
	public boolean compareTOFiles(File f) {
		if (f.getName().compareTo(referenceFile.getName()) != 0) {
			return false;
		}
		else if (f.length() != referenceFile.length()) {
			return false;
		}
		else
			return true;
	}


	public String getPath() {
		return path;
	}


	public void setPath(String path) {
		this.path = path;
	}


	public MusicType getMusicType() {
		return musicType;
	}


	public void setMusicType(MusicType musicType) {
		this.musicType = musicType;
	}

 

}
